﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.Entity;
using Microsoft.ApplicationBlocks.Data;

namespace ClassProject.DAL
{
    class CalendarDetailsDAL:ADONET
    {
        private CalendarDetailsEntity calendarDetailsEntity = new CalendarDetailsEntity();

        public CalendarDetailsDAL()
        {
            
        }

        #region Insert data table CalendarDetails
        public int Insert()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_CalendarDetails_Insert", calendarDetailsEntity.CalendarID, calendarDetailsEntity.AdminID, calendarDetailsEntity.Last_Insert);
            return i;
        }
        #endregion

        #region Update data table CalendarDetails
        public int Update()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_CalendarDetails_Update", calendarDetailsEntity.Admin_Update, calendarDetailsEntity.Last_Update, calendarDetailsEntity.CalendarID);
            return i;
        }
        #endregion

        #region Delete data table CalendarDetails
        public int Delete()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_CalendarDetails_Delete", calendarDetailsEntity.Admin_Delete, calendarDetailsEntity.Last_Delete, calendarDetailsEntity.CalendarID);
            return i;
        }
        #endregion
    }
}
